// Playground - noun: a place where people can play

import UIKit

var rating:Character = "a"
if rating == "A" || rating == "a"
{
    println("Great")
}
else if rating == "B"
{
    println("Just so-so")
}
else
{
    println("It's bad")
}

switch rating
{
    case "A","a":
        println("Great")
    case "B":
        println("Just so-so")
    default:
        println("It's bad")
}

let imString:String = "I'm a String"
switch imString
{
    case "I'm a String":
        println("I'm a String")
    default:
        println("I'm really not a String")
}

var score = 90
switch score
{
    case 0:
        println("You got an egg")
    case 1..<60:
        println("Sorry, you failed")
    case 60:
        println("Just Pass")
    case 61..<70:
        println("Not bad")
    case 70..<90:
        println("Good job")
    case 90..<100:
        println("Great")
    case 100:
        println("Prefect")
    default:
        println("Some Error ")
}











